import type { Preflight } from 'unocss'
import theme from './theme'

export function createPreflights(){
  const preflights: Preflight<typeof theme>[] = [
    {
      getCSS: ({ theme }) => `
        * {
          '--primary-color': ${theme.colors.primary};
          padding: 0;
          margin: 0;
        }
      `,
      // layer
    }
  ]
  return preflights
}